package com.bw.liveplay.common.mvvm.viewmodel

import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent

/**
 * @author KK
 * @description:
 * @date :2021/11/9 18:03
 *
 */
abstract interface IViewModel : LifecycleObserver{

    //创建
    @OnLifecycleEvent(value = Lifecycle.Event.ON_CREATE)
    fun create()

    //销毁
    @OnLifecycleEvent(value = Lifecycle.Event.ON_DESTROY)
    fun destory()
}